home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
shotbl.arc
/
MAPTABLE.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-12-12
|
3KB
|
142 lines
;*****************************************************************************
;*
;* Program Name: SHELL TABLE ASSEMBLY INTERFACE
;*
;* Filename: maptable.asm
;*
;* Date Created: November 18, 1988
;*
;* Version: 1.0
;*
;* Programmers: Thomas Brough
;*
;* Files used:
;*
;* Date Modified:
;*
;* Modifications:
;*
;* Comments:
;*
;*****************************************************************************
name ShellTableFunctions
PGROUP Group _TEXT
assume cs:PGroup
_TEXT segment public 'CODE'
public _GetConnectionInfoTable
public _GetDriveHandleTable
public _GetDriveFlagTable
public _GetDriveServerTable
public _GetServerNameTable
;
;Syntax: void GetConnectionInfoTable( WORD *tableSegment, WORD * tableOffset );
;
_GetConnectionInfoTable proc near
push bp ;save current BP
mov bp, sp ;point new BP to current stack
xor si, si
mov es, si
mov ax, 0EF03h ;get server mapping table function
int 21h
mov di, [bp + 4] ;ES returns segment address of table
mov [di], es
mov di, [bp + 6] ;SI returns offset address of table
mov [di], si
pop bp ;restore old BP
ret ;return to caller
_GetConnectionInfoTable endp
;
;Syntax: void GetDriveHandleTable( WORD *tableSegment, WORD * tableOffset );
;
_GetDriveHandleTable proc near
push bp ;save current BP
mov bp, sp ;point new BP to current stack
xor si, si
mov es, si
mov ax, 0EF00h ;get drive handle table function
int 21h
mov di, [bp + 4] ;ES returns segment address of table
mov [di], es
mov di, [bp + 6] ;SI returns offset address of table
mov [di], si
pop bp ;restore old BP
ret ;return to caller
_GetDriveHandleTable endp
;
;Syntax: void GetDriveFlagTable( WORD *tableSegment, WORD * tableOffset );
;
_GetDriveFlagTable proc near
push bp ;save current BP
mov bp, sp ;point new BP to current stack
xor si, si
mov es, si
mov ax, 0EF01h ;get drive flag table function
int 21h
mov di, [bp + 4] ;ES returns segment address of table
mov [di], es
mov di, [bp + 6] ;SI returns offset address of table
mov [di], si
pop bp ;restore old BP
ret ;return to caller
_GetDriveFlagTable endp
;
;Syntax: void GetDriveServerTable( WORD *tableSegment, WORD * tableOffset );
;
_GetDriveServerTable proc near
push bp ;save current BP
mov bp, sp ;point new BP to current stack
xor si, si
mov es, si
mov ax, 0EF02h ;get drive server table function
int 21h
mov di, [bp + 4] ;ES returns segment address of table
mov [di], es
mov di, [bp + 6] ;SI returns offset address of table
mov [di], si
pop bp ;restore old BP
ret ;return to caller
_GetDriveServerTable endp
;
;Syntax: void GetServerNameTable( WORD *tableSegment, WORD * tableOffset );
;
_GetServerNameTable proc near
push bp ;save current BP
mov bp, sp ;point new BP to current stack
xor si, si
mov es, si
mov ax, 0EF04h ;get server name table function
int 21h
mov di, [bp + 4] ;ES returns segment address of table
mov [di], es
mov di, [bp + 6] ;SI returns offset address of table
mov [di], si
pop bp ;restore old BP
ret ;return to caller
_GetServerNameTable endp
_TEXT ends
end